import { createRouter, createWebHistory } from 'vue-router'
import Layout from '../layout/index.vue'


const constantRouterMap = [
    {
        path: '/',
        component: Layout,
        redirect: '/home',
        children: [{
            path: 'home',
            sysName: '首页',
            name: 'home',
            component: () => import('../views/dashboard/index.vue'),
            meta: { title: '首页', icon: 'dashboard' }
        }]
    },
]
const router = createRouter({
    history: createWebHistory(),
    routes: [...constantRouterMap]
})

export default router